package com.kxmall.web.controller.order;

import com.kxmall.common.core.controller.BaseAppController;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.group.domain.vo.KxGroupShopVo;
import com.kxmall.web.controller.order.service.IKxAppGroupService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 评论
 *
 * @author kxmall
 * @date 2023-04-06
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/group/app")
public class KxAppGroupController extends BaseAppController {

    private final IKxAppGroupService appGroupService;


    /**
     * 获取团购列表
     *
     * @param storageId
     * @return
     */
    @GetMapping("/getGroupShopPage")
    public TableDataInfo<KxGroupShopVo> getSpuAllAppraise(Long storageId, Integer pageNo,@RequestParam(defaultValue = "10") Integer pageSize) {
        return appGroupService.getGroupShopPage(storageId, pageNo, pageSize);
    }


}
